package org.slusk.thynwor.util;

import org.slusk.thynwor.corestructures.IWorker;

public class BotDistancePriorityElement implements Comparable<BotDistancePriorityElement> {
	public IWorker bot;
	public double distance;
	
	public BotDistancePriorityElement(IWorker bot, double distance) {
		this.bot = bot;
		this.distance = distance;
	}
	
	public int compareTo(BotDistancePriorityElement o) {
		if (this.distance < o.distance) return -1;
		else if (this.distance == o.distance) return 0;
		else return 1;
	}

}
